import request from '@/utils/request'
// -------- 内容模块 -- 头条 --------

let BASE_ADDRESS = '/doc/top'

//  分页查询
export const getTopListApi = (params) => {
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

// 根据id查询
export const getTopInfoApi = (params) => {
    return request({
        url: `${BASE_ADDRESS}/getInfo`,
        method: "get",
        params
    })
}
// 删除

export const getTopRemoveApi = (data) => {
    return request({
        url: `${BASE_ADDRESS}/remove`,
        method: "delete",
        data
    })
}